package Map;

import java.util.HashMap;
import java.util.Map;

public class MapDemo1 {
    public static void main(String[] args) {
        Map<String,Integer> map = new HashMap<>();
        map.put("语文",96);
        map.put("数学",95);
        map.put("英语",99);
        map.put("物理",90);
        map.put("化学",88);
        System.out.println(map);
        Integer value1 = map.put("语文",92);
        System.out.println(value1);
        System.out.println(map);
        Integer value2 = map.put("历史",89);
        System.out.println(map);
        System.out.println(value2);
        //System.out.println(value2.equals(value1));
    }
}
